package com.huc.ribbon.rest.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.huc.ribbon.order.feign.OrderFeignClient;

@RequestMapping("order")
@RestController
public class OrderController {
	
	@Autowired
	private OrderFeignClient orderFeignClient;
	

	@GetMapping("findOrderById")
	public String findOrderById(Long orderId) {
		return orderFeignClient.findOrderById(orderId);
	}
}
